<?php

namespace app\api\controller;

use  app\common\controller\DBase;
use think\facade\Db;
use app\api\logic\ApiOrderDisputeLogic;
use Throwable;

class ApiOrderDispute extends DBase
{
    /**
     * 模型
     * @var object
     * @phpstan-var ApiAdvaccountModel
     */

    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * paypal获取list
     * @throws Throwable
     */
    public function dispute_paypal()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->dispute_paypal($params);
    }

    /**
     * stripe获取list
     * @throws Throwable
     */
    public function dispute_stripe()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->dispute_stripe($params);
    }
    /**
     * Disputes获取list
     * @throws Throwable
     */
    public function ApiOrderDisputes()
    {
        $params     = $this->request->get();
        return (new ApiOrderDisputeLogic())->ApiOrderDisputes($params);
    }
    /**
     * 查询订单交易API
     * @throws Throwable
     */
    public function QueryOrderTransactionApi()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->QueryOrderTransactionApi($params);
    }
    /**
     * 查询订单交易API
     * @throws Throwable
     */
    public function QueryOrderTransactionApiList()
    {
        $params     = $this->request->get();
        return (new ApiOrderDisputeLogic())->QueryOrderTransactionApiList($params);
    }
    /**
     * 查询订单交易API---详情检查
     * @throws Throwable
     */
    public function dispute_paypal_inspect()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->dispute_paypal_inspect($params);
    }
    /**
     * afterpay获取list
     * @throws Throwable
     */
    public function dispute_afterpay()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->dispute_afterpay($params);
    }
    /**
     * payouts支出
     * @throws Throwable
     */
    public function payouts()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->payouts($params);
    }

    /**
     * payouts支出
     * @throws Throwable
     */
    public function ReasonForRefund()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->ReasonForRefund($params);
    }

    /**
     * @throws Throwable
     */
    public function ReasonForDispute()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->ReasonForDispute($params);
    }

    /**
     * @throws Throwable
     */
    public function DisputeDataInfo()
    {
        $params     = $this->request->post();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->DisputeDataInfo($params);
    }

    /**
     * @throws Throwable
     */
    public function ReasonForDisputemsg()
    {
        $params     = $this->request->get();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->ReasonForDisputemsg($params);
    }

    /**
     * @throws Throwable
     */
    public function addDisputeDataInfo()
    {
        $params     = $this->request->post();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->addDisputeDataInfo($params);
    }

    public function getProductSkus()
    {
        $params     = $this->request->post();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->getProductSkus($params);
    }
    public function CustomerRefunds()
    {
        $params     = $this->request->post();
        $ApiOrderDisputeLogic = new ApiOrderDisputeLogic();
        return $ApiOrderDisputeLogic->CustomerRefunds($params);
    }
}
